/* 带文字内容的分隔线 */
.hr-solid-content {
    position: relative;
    width: 100%;
    padding: 1em 0;
    color: #a2a9b6;
    border: 0;
    font-size: 12px;
}
.hr-solid-content::before {
    content: attr(data-content);
    position: absolute;
    padding: 0 1ch;
    line-height: 1px;
    border: solid #d0d0d5;
    border-width: 0 99vw;
    width: fit-content;
    /* for 不支持fit-content浏览器 */
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
}

code {
    display: block;
    padding: 8px;
}